<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
         const p1 = p.then((value) => {
            const re = new Promise((resolve, reject) => {
                console.log('我感受到了你成功了', value)
                try {
                    throw new Error('第二个错误')
                    setTimeout(() => {
                        console.log('我是第二个定时器');
                        resolve('p1执行了')
                    }, 2000);
                } catch (e) {
                    reject(e.message)
                }
            })
            return re
        }, (reason) => {
            console.log('你失败了，以科修', reason)
        })
        // p1.then(
        //     (value) => { 

        //     }, 
        // (reason) => {

        // })
    </script>
</body>
</html>